﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Models.PayModels.PayModel>" %>
<%@ Import Namespace="Code.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    用户充值
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <fieldset>
            <legend>充值</legend>
            <% var args=new{Model.Bank,Model.Money,Model.PayType}; %>
            <%=Html.ValidationMessage("Error") %>
            <ul class="editlist">
                <li><span class="label">充值金额:</span> <span>
                    <%=Model.Money %></span>
                </li>
                <li><span class="label">支付方式:</span> 
                      <img height="28px" alt='<%=Model.PayType.GetName() %>' src='<%=Url.Content("~/Content/img/pay/pay_logo_"+Model.PayType+".jpg") %>' />
                </li>
                <li class="btn">
                    <%=Html.ActionLink("返回", "Index", "Pay", args, new { @class="a_blue font20 fontwidth_bold"})%>
                    <%if(ViewData.ModelState.IsValid){ %>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <%=Html.ActionLink("点击进入支付", "Redirect", "Pay", args, new { @class = "a_blue font20 fontwidth_bold", id = "redirectact", target = "_blank" })%>
                    <%} %>
                </li>
            </ul>
        </fieldset>
        <div class="blockcontent">
            <table class="table" width="300px">
                <tr><th colspan="2">在线支付</th></tr>
                <tr><td colspan="2" align="left">
                    <img src='<%=Url.Content("~/Content/img/tip.gif") %>' height="30px" alt="重要提示" />
                    <span class="font14">付款未完成前请勿关闭此窗口！<br />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如遇到问题请与我们联系。
                    </span>
                </td></tr>
                <tr>
                    <td><a href="javascript:void(0)" onclick='location.href="<%=Url.Action("Detail", "Account", Url.Route(new { Serch = new { Type="AddMoney",StartTime=DateTime.Now.ToShortDateString()} })) %>"'
                            class="a_blue font16">已完成支付</a></td>
                    <td><a href="javascript:void(0)" onclick='$(".pager").unblock()' class="a_blue font16">支付遇到问题</a></td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
<script type="text/javascript">
    $(document).ready(function () {
        var opts = {
            message: $(".blockcontent").html(),
            css: { top: "200px",width:"350px",'text-align':"center" }
        };
        $("#redirectact").click(function () {
            
                $(".pager").block(opts);
        });
    });
</script>
<style type="text/css">
    .blockcontent{display:none;}
</style>
</asp:Content>
